package mspbots.cw.business.core.timeentry;

import lombok.*;
import mspbots.cw.business.core.BaseTenantEntity;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDateTime;

@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Table("task_cw_timeentry")
public class TimeEntry extends BaseTenantEntity {

    private Long timeentryId;
    private Long cwUid;
    private Long ticketId;
    private String notes;
    private String status;
    private String workTypeName;
    private LocalDateTime dateEntered;
    private LocalDateTime timeStart;
    private LocalDateTime timeEnd;
    private Long companyId;
    private String companyName;
    private Long agreementId;
    private String agreementName;
    private String action;

    private String chargeToType;

    private Double actualHours;
    private Boolean addToResolutionFlag;
    private Boolean hasAgreement;
    private String internalNotes;
    private LocalDateTime syncTime;
    private String billableOption;
    private LocalDateTime updateTime;

    private Long memberId;
    private String memberName;

    private Long locationId;

    private Double hourlyRate;

    private Long workRoleId;
    private String workRoleName;

    private String updatedBy;
    private LocalDateTime consumeTime;
    private Double agreementAmount;

    private String link;
    private Boolean addToDetailDescriptionFlag;

}
